//
//  ActionFlowCell.m
//  SAP
//
//  Created by 中矿科技有限公司 on 17/9/11.
//  Copyright © 2017年 中矿科技有限公司. All rights reserved.
//

#import "ActionFlowCell.h"

@implementation ActionFlowCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setFromContractTermsModel:(SAflowInstanceHistoryList *)model{
    self.nodeDisplayName.text =[NSString stringWithFormat:@"%@(%@)", model.nodeDisplayName,model.actionName];
    if ([UITool isBlankString: model.actionName ]) {
        self.nodeDisplayName.text =model.nodeDisplayName;
    }
    if(![UITool isBlankString:model.remark]){
       self.remark.text = [NSString stringWithFormat:@"备注: %@",model.remark];
    }else{
       self.remark.text = [NSString stringWithFormat:@"备注: %@",@"暂无"];
    }
    if (![UITool isBlankString:model.actionUserName]) self.actionUserName.text =[model.nodeDisplayName substringToIndex:1];
    self.creationTime.text = model.creationTime;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
